<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改老师</title>
</head>
<body>

<form method="post" action="updateTeacher">
        <input type="hidden" name="id" value="{$updateTeacher.id}">
    老师名字:<input type="text" name="name" value="{$updateTeacher.name}">
    老师密码:<input type="text" name="password" value="{$updateTeacher.password}">
    老师性别:<input type="text" name="sex" value="{$updateTeacher.sex}">
    老师年龄:<input type="text" name="age" value="{$updateTeacher.age}">
    科目:
    {foreach($select_c_name as $key=>$value)}
     {if in_array($value.id,$selectTeaching_id)}
        {$value.name}<input type="checkbox" name="c_name[{$value.id}] " value="{$value.id}" checked> &nbsp &nbsp
    {else/}
        {$value.name}<input type="checkbox" name="c_name[{$value.id}] " value="{$value.id}"> &nbsp &nbsp
    {/if}


    {/foreach}
    <button type="submit">提交</button>

</form>

</body>
</html>